
<div class="form-group">
    <label class="control-label col-xs-12 col-sm-2">商户号:</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-appid" data-rule="required" class="form-control" name="row[mch_id]" type="text" value="{$config.mch_id ?? ''}">
    </div>
</div>

<div class="form-group">
    <label class="control-label col-xs-12 col-sm-2">商户key:</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-appid" data-rule="required" class="form-control" name="row[key]" type="text" value="{$config.key ?? ''}">
    </div>
</div>

<div class="form-group">
    <label class="control-label col-xs-12 col-sm-2">APP APPID:</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-appid" class="form-control" name="row[appid]" type="text" value="{$config.appid ?? ''}">
    </div>
</div>

<div class="form-group">
    <label class="control-label col-xs-12 col-sm-2">公众号 APPID:</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-appid" class="form-control" name="row[app_id]" type="text" value="{$config.app_id | default=''}">
    </div>
</div>

<div class="form-group">
    <label class="control-label col-xs-12 col-sm-2">小程序 APPID:</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-appid" class="form-control" name="row[miniapp_id]" type="text" value="{$config.miniapp_id | default=''}">
    </div>
</div>

<div class="form-group">
    <label for="c-cert_file" class="control-label col-xs-12 col-sm-2">微信支付API证书cert:</label>
    <div class="col-xs-12 col-sm-8">
        <div class="input-group">
            <input id="c-cert_file" data-rule="" class="form-control" size="50" name="row[cert_file]" type="text" value="{$config.cert_file | default=''}">
            <div class="input-group-addon no-border no-padding">
                <span><button type="button" id="plupload-cert_file" class="btn btn-danger plupload" data-input-id="c-cert_file" data-url="payment/channel/upload" data-mimetype="pem" data-multiple="false" data-preview-id="p-cert_file"><i class="fa fa-upload"></i> 上传</button></span>
            </div>
            <span class="msg-box n-right" for="c-cert_file"></span>
        </div>
        <ul class="row list-inline plupload-preview" id="p-cert_file"></ul>
    </div>
</div>

<div class="form-group">
    <label for="c-key_file" class="control-label col-xs-12 col-sm-2">微信支付API证书key:</label>
    <div class="col-xs-12 col-sm-8">
        <div class="input-group">
            <input id="c-key_file" data-rule="" class="form-control" size="50" name="row[key_file]" type="text" value="{$config.key_file | default=''}">
            <div class="input-group-addon no-border no-padding">
                <span><button type="button" id="plupload-key_file" class="btn btn-danger plupload" data-input-id="c-key_file" data-url="payment/channel/upload" data-mimetype="pem" data-multiple="false" data-preview-id="p-key_file"><i class="fa fa-upload"></i> 上传</button></span>
            </div>
            <span class="msg-box n-right" for="c-key_file"></span>
        </div>
        <ul class="row list-inline plupload-preview" id="p-key_file"></ul>
    </div>
</div>
